package dimensional.traveler.client.resources.images.icons.universes;

import com.google.gwt.resources.client.ImageResource;

import dimensional.traveler.client.resources.images.icons.Icons;
import dimensional.traveler.shared.Settings;
import dimensional.traveler.shared.model.Universe;

public class UniverseIconFactory {

	public ImageResource getImageResourceForEra(Universe universe) {
		if (Settings.USE_PLACEHOLDERS) {
			return Icons.INSTANCE.genericIcon();
		} else {
			switch (universe) {
			case NativeAmerican:
				return UniverseIcons.INSTANCE.nativeAmerican();
			case Roman:
				return UniverseIcons.INSTANCE.roman();
			case Modern:
				return UniverseIcons.INSTANCE.modern();
			default:
				return Icons.INSTANCE.genericIcon();
			}
		}
	}
}
